<?php
/**
 * Created by PhpStorm.
 * User: bzg
 * Date: 2019/11/27
 * Time: 11:47
 */

namespace App\Router\Test;


use FastRoute\RouteCollector;

class TestRouter
{
    public function index(RouteCollector $routeCollector)
    {
        // 路由分组
        $routeCollector->addGroup('/test',function (RouteCollector $r) {
            $r->get('/test','/Test/Index/index');
            $r->get('/demo','/Test/Index/demo');
        });
    }
}